import { DefaultLayout } from '@/layout'
import type { Route } from '@/layout/components'

export default {
  path: '/aiSkinTest',
  name: 'AiSkinTest',
  component: DefaultLayout,
  redirect: '/aiSkinTest/testSymptomCopy',
  meta: {
    title: 'AI测肤',
    icon: 'menu-ai',
    alwaysShow: true,
    sort: 22,
    roles: ['AI测肤']
  },
  children: [
    {
      path: 'testSymptomCopy',
      name: 'TestSymptomCopy',
      component: () => import('@/views/aiSkinTest/testSymptomCopy/index'),
      meta: { title: '检测症状文案配置', roles: ['检测症状文案配置'] }
    },
    {
      path: 'aiCopyEdit',
      name: 'AiCopyEdit',
      component: () => import('@/views/aiSkinTest/testSymptomCopy/aiCopyEdit'),
      meta: { title: '检测症状文案配置编辑', hidden: true }
    },
    {
      path: 'systemSettings',
      name: 'SystemSettings',
      component: () => import('@/views/aiSkinTest/setting/systemSettings'),
      meta: { title: '系统设置', roles: ['系统设置'] }
    },
    {
      path: 'bottomReport',
      name: 'BottomReport',
      component: () => import('@/views/aiSkinTest/bottomReport/index'),
      meta: { title: '检测报告底部广告图', roles: ['检测报告底部广告图'] }
    },
    {
      path: 'skinDataCount',
      name: 'SkinDataCount',
      component: () => import('@/views/aiSkinTest/skinDataCount/index'),
      meta: { title: '测肤数据统计', roles: ['测肤数据统计'] }
    },
    {
      path: 'skinDataCountDetail',
      name: 'SkinDataCountDetail',
      component: () => import('@/views/aiSkinTest/skinDataCount/detail'),
      meta: { title: '测肤数据统计查看报告', hidden: true }
    },
    {
      path: 'productConfiguration',
      name: 'ProductConfiguration',
      component: () => import('@/views/aiSkinTest/productConfiguration/index'),
      meta: { title: '产品配置列表', roles: ['产品配置列表'] }
    },
    {
      path: 'productConfigEdit',
      name: 'ProductConfigEdit',
      component: () =>
        import('@/views/aiSkinTest/productConfiguration/productConfigEdit'),
      meta: { title: '产品配置列表新增', hidden: true }
    },
    {
      path: 'detectHomepage',
      name: 'DetectHomepage',
      component: () => import('@/views/aiSkinTest/detectHomepage/index'),
      meta: { title: '检测首页配置', roles: ['检测首页配置'] }
    }
    // {
    //   path: 'skincareManagement',
    //   name: 'SkincareManagement',
    //   component: () => import('@/views/aiSkinTest/skincareManagement/index'),
    //   meta: { title: 'AI测肤对接管理' }
    // }
  ]
} as Route
